package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 墓地表（可设置骨灰格位）
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_cemetery_tomb_land")
public class TombLand {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 墓地名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 所属节点
     */
    @TableField(value = "node_id")
    private String nodeId;

    /**
     * 节点冗余id(最多512/33=15层) 格式: |id1|id2|id3
     */
    @TableField(value = "node_completely_id")
    private String nodeCompletelyId;

    /**
     * 节点冗余名称
     */
    @TableField(value = "node_completely_name")
    private String nodeCompletelyName;

    /**
     * 墓型
     */
    @TableField(value = "type_id")
    private String typeId;

    /**
     * 墓地面积
     */
    @TableField(value = "acreage")
    private BigDecimal acreage;

    /**
     * 高度
     */
    @TableField(value = "height")
    private BigDecimal height;

    /**
     * 实际的排
     */
    @TableField(value = "`row`")
    private Integer row;

    /**
     * 实际的列
     */
    @TableField(value = "`column`")
    private Integer column;

    /**
     * 展示的排
     */
    @TableField(value = "show_row")
    private String showRow;

    /**
     * 展示的列
     */
    @TableField(value = "show_column")
    private String showColumn;

    /**
     * 穴位个数
     */
    @TableField(value = "grave_num")
    private Integer graveNum;

    /**
     * 穴位类型(1 单穴 2 双穴3 多穴 )
     */
    @TableField(value = "grave_num_type")
    private Integer graveNumType;

    /**
     * 安葬状态（0 未葬  1 已葬 2 部分安葬）
     */
    @TableField(value = "burial_status")
    private Integer burialStatus;

    /**
     * 开放状态 (0 正常出售 1 暂停出售 2 已售   )
     */
    @TableField(value = "open_status")
    private Integer openStatus;

    /**
     * 销售状态(0 未售  1 预留  2订购    3  出售)
     */
    @TableField(value = "sales_status")
    private Integer salesStatus;

    /**
     * 寄存状态 0 无寄存 1 待寄存 2 已寄存 3 已取出 4 已迁出
     */
    @TableField(value = "prove_status")
    private Integer proveStatus;

    /**
     * 种类( 0 :墓地 1 : 骨灰楼2：壁穴 3：草坪 4：树葬)
     */
    @TableField(value = "species")
    private Integer species;

    /**
     * 合并状态: 0无合并记录, 1 已被合并, 2合并自其他墓,
     */
    @TableField(value = "merge_status")
    private Integer mergeStatus;

    /**
     * 合并记录id,也是被合并之后的新墓地的id
     */
    @TableField(value = "merge_id")
    private String mergeId;

    /**
     * 墓地显示顺序
     */
    @TableField(value = "seq")
    private Integer seq;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 最后修改的人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;

    /**
     * 删除状态(0删除 1正常)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 机构id
     */
    @TableField(value = "organ_id")
    private String organId;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_NODE_ID = "node_id";

    public static final String COL_NODE_COMPLETELY_ID = "node_completely_id";

    public static final String COL_NODE_COMPLETELY_NAME = "node_completely_name";

    public static final String COL_TYPE_ID = "type_id";

    public static final String COL_ACREAGE = "acreage";

    public static final String COL_HEIGHT = "height";

    public static final String COL_ROW = "row";

    public static final String COL_COLUMN = "column";

    public static final String COL_SHOW_ROW = "show_row";

    public static final String COL_SHOW_COLUMN = "show_column";

    public static final String COL_GRAVE_NUM = "grave_num";

    public static final String COL_GRAVE_NUM_TYPE = "grave_num_type";

    public static final String COL_BURIAL_STATUS = "burial_status";

    public static final String COL_OPEN_STATUS = "open_status";

    public static final String COL_SALES_STATUS = "sales_status";

    public static final String COL_PROVE_STATUS = "prove_status";

    public static final String COL_SPECIES = "species";

    public static final String COL_MERGE_STATUS = "merge_status";

    public static final String COL_MERGE_ID = "merge_id";

    public static final String COL_SEQ = "seq";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";
}